package com.nms.util;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class SourceUtil {

	public static class PropertiesUtil {
		private static Properties props;
		static {
			props = new Properties();
			FileInputStream fis = null;
			try {
				fis = new FileInputStream(SystemUtil.getInstance()
						.getAppBasePath() + "developing.properties");
				props.load(fis);
				fis.close();
			} catch (FileNotFoundException e) {
				e.printStackTrace();
			} catch (IOException e) {
				e.printStackTrace();
			} finally {
				if (fis != null)
					fis = null;
			}
		}

		public static String getProjectContentPath() {
			return props.getProperty("project.content.path");
		}
	}
}
